Skip to content

Raise the minimum PHP version to 8.2 and update the dependencies - #221

Merged
armanist merged 4 commits into
quantum-php:masterfrom
armanist:issue/220-php-8-2-dependencies
Nov 21, 2026
Merged

armanist merged 4 commits into
quantum-php:masterfrom
armanist:issue/220-php-8-2-dependencies

Conversation

@armanist

@armanist armanist commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #220

What

The starter project follows framework 3.2 (quantum-php/framework#687): it requires PHP 8.2 and moves its dependencies to their newest versions that run on PHP 8.2.

  • PHP 8.2 (BREAKING): composer.json ^8.2, CI tests 8.2, 8.3 and 8.4, Scrutinizer, PHPStan and Rector target 8.2, and the README says "PHP 8.2 or newer". Rector's 8.2 set proposes no changes to the project's code.
  • Framework 3.2 and Symfony 7.4 (BREAKING): quantum/framework 3.2.*@dev until 3.2.0 is released; symfony/process and symfony/yaml ^7.4, because the framework's symfony/console 7.4 conflicts with symfony/process below 6.4.
  • Tests: phpunit/phpunit ^11.5 and mockery/mockery ^1.6. phpunit.xml drops the verbose attribute, CommonLangTest uses #[DataProvider], and the feature tests tear down the app they boot in setUp() together with the framework's error and exception handlers.

Why

Framework 3.2 requires PHP 8.2 and Symfony 7.4, and the project could not install it with symfony/process and symfony/yaml ^5.4.

Changed paths

  • composer.json, .github/workflows/php.yml, .scrutinizer.yml, phpstan.neon.dist, rector.php, phpunit.xml, README.md, CHANGELOG.md
  • tests/Feature/AppTestCase.php, tests/Unit/shared/Lang/CommonLangTest.php

Testing

  • On PHPUnit 11.5 without the test changes, all 63 tests passed but 27 feature tests were reported as risky (framework error handlers left registered) and 4 PHPUnit deprecations were raised (@dataProvider doc comments, the old phpunit.xml schema). With the changes: no risky tests, no deprecations.
  • Run locally against the merged 3.2.x framework: the app answered /, /api/posts and /en/posts with 200 and logged no errors.

Summary by CodeRabbit

  • Compatibility
    • The minimum supported PHP version is now 8.2. PHP 8.1 is no longer supported.
  • Updates
    • Updated the framework and Symfony Process and YAML requirements.
    • Updated testing tools, including PHPUnit and Mockery.
    • The automated PHP test matrix now covers PHP 8.2, 8.3, and 8.4.

armanist and others added 4 commits November 21, 2026 21:02
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PHPUnit 11 needs a source filter for the coverage report that composer test writes, and fails the run without one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@quantum-php quantum-php deleted a comment from coderabbitai Bot Nov 21, 2026
@armanist
armanist merged commit 25fb23e into quantum-php:master Nov 21, 2026
4 of 5 checks passed
@armanist
armanist deleted the issue/220-php-8-2-dependencies branch November 21, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raise the minimum PHP version to 8.2 and update the dependencies

1 participant